import 'package:flutter/material.dart';
import 'package:flutter_demo/services/audio_service.dart';
import 'package:provider/provider.dart';
import 'pages/main_tab_page.dart';

void main() {
  runApp(ChangeNotifierProvider(
    create: (context) => AudioService(),
    child: MyApp(),
  ),);
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: '本地音乐播放器',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: MainTabPage(), // 使用Tab页面作为主页
    );
  }
}